const { VITE_HIDE_HOME } = import.meta.env;
const Layout = () => import("@/layout/index.vue");

export default {
  path: "/result",
  name: "Home",
  component: Layout,
  redirect: "/result/index",
  meta: {
    icon: "homeFilled",
    title: "结果",
    rank: 0
  },
  children: [
    {
      path: "/result/report",
      name: "ResultReport",
      component: () => import("@/views/report/index.vue"),
      meta: {
        title: "详细结果",
        showLink: false
      }
    },
    {
      path: "/result/index",
      name: "Result",
      component: () => import("@/views/result/index.vue"),
      meta: {
        title: "结果",
        showLink: VITE_HIDE_HOME === "true" ? false : true
      }
    },
    {
      path: "/result/detail/:id",
      name: "ResultDetail",
      component: () => import("@/views/result/detail.vue"),
      meta: {
        title: "详情",
        showLink: false
      }
    }
  ]
} as RouteConfigsTable;
